package com.atXiao.factory;

import com.atXiao.design.PaymentStrategy;
import com.atXiao.design.PaymentStrategyFactory;
import com.atXiao.strategy.PayPalStrategy;

// 实现PayPal策略工厂类
class PayPalStrategyFactory implements PaymentStrategyFactory {
    private String email;
    private String password;

    public PayPalStrategyFactory(String email, String password) {
        this.email = email;
        this.password = password;
    }

    @Override
    public PaymentStrategy createPaymentStrategy() {
        return new PayPalStrategy(email, password);
    }
}